home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 41 / CD Expert nº 41.iso / DReign2 / DR2Demo.exe / data1.cab / Files / missions / demo / Demo Mission 2.zwp / objective_flee_to_shuttle.cfg < prev    next >
Encoding:
Text File  |  2000-09-01  |  1.7 KB  |  83 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 1997-99 Pandemic Studios
  4. //
  5. // Dark Reign II
  6. //
  7.  
  8. CreateObjectType("objective_flee_to_shuttle1", "Objective")
  9. {
  10.   GameObj();
  11.   ObjectiveObj()
  12.   {
  13.      Condition("InRegion")
  14.      {
  15.        Region("NearGC");
  16.        Team("JDA");
  17.        Type("*")
  18.        {
  19.          Amount(0);
  20.          Operator(">");
  21.        }
  22.      }
  23.  
  24.     Action()
  25.     {
  26.       ExecuteScript("Traitors1", "squad.move.tagtoregion")
  27.       {
  28.         Op("%.tag", "=", "Traitors1");
  29.         Op("%.region", "=", "NearShuttle");
  30.         Op("%.attack", "=", 0);
  31.       }
  32.       ExecuteScript("Traitors3", "squad.move.tagtoregion")
  33.       {
  34.         Op("%.tag", "=", "Traitors3");
  35.         Op("%.region", "=", "NearShuttle");
  36.         Op("%.attack", "=", 1);
  37.       }
  38.       NewObjective("cineractive_shuttle");
  39.       NewObjective("objective_flee_to_shuttle2");
  40.       Op("@.flee1", "=", 1);
  41.     }
  42.   }
  43. }
  44.  
  45. CreateObjectType("objective_flee_to_shuttle2", "Objective")
  46. {
  47.   GameObj();
  48.   ObjectiveObj()
  49.   {
  50.     Condition("TRUE");
  51.  
  52.     Action()
  53.     {
  54.       ExecuteScript("Traitors2", "squad.move.tagtoregion")
  55.       {
  56.         Op("%.tag", "=", "Traitors2");
  57.         Op("%.region", "=", "NearShuttle");
  58.         Op("%.attack", "=", 1);
  59.       }
  60.       Op("@.flee2", "=", 1);
  61.     }
  62.   }
  63. }
  64.  
  65. CreateObjectType("objective_stop_blinking1", "Objective")
  66. {
  67.   GameObj();
  68.   ObjectiveObj()
  69.   {
  70.     Condition("OR")
  71.     {
  72.       Condition("VarConstInteger", "@GC.flee1", "==", 1);
  73.       Condition("VarConstInteger", "@GC.flee2", "==", 1);
  74.     }
  75.  
  76.     Action()
  77.     {
  78.       ObjectiveAbandoned("objective_blinking1");
  79.     }
  80.   }
  81. }
  82.  
  83.